#!/usr/bin/env python3
# Created by han on 2016/7/4
# import subprocess
# ret = subprocess.Popen(["python3"],stdin=subprocess.PIPE,stdout=subprocess.PIPE,stderr=subprocess.PIPE,shell=True)
# ret.stdin.write("print(1)\n")
# ret.stdin.write("asfdaf")
# ret.stdin.close()
#
# cmd_out = ret.stdout.read()
# ret.stdout.close()
#
# cmd_error = ret.stderr.read()
# ret.stderr.close()
#
# print(cmd_out)
# print(cmd_error)


def outer(func):
    def inner():
        print("before")
        func()
    return inner

@outer
def f1():
    print("F1")


